<!DOCTYPE html>
<html lang="en">
<head>
    <title>通知管理</title>
    <#include "/header.html">
    <link rel="stylesheet" href="https://unpkg.com/element-ui@2.4.1/lib/theme-chalk/index.css">
</head>
<body>

<div id="rrapp" v-cloak>

    <div v-show="showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">通知标题：</div>
                <div class="col-sm-10">
                    <input type="text" id="notifyTitle" class="form-control" v-model="notify.notifyTitle" placeholder="请输入通知标题"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">通知内容：</div>
                <div class="col-sm-10">
                    <el-input type="textarea" id="notifyContent" :rows="5" placeholder="请输入通知内容" v-on:input = "getInputNum()" v-model="notify.notifyContent"> </el-input>
                    <b style="float: right;color: #FF5722">最多可输入{{inputNum}}/200个字符</b>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">接收方：</div>
                <label class="radio-inline">
                    <input type="radio" v-model="checkUserFalg" @click="userClick(true)" value="0"/>全部用户
                </label>
                <label class="radio-inline">
                    <input type="radio" v-model="checkUserFalg" @click="userClick(false)" value="1"/>部分用户
                </label>
            </div>
            <div class="form-group" v-show="showD">
                <div class="col-sm-2 control-label"></div>
                <template>
                    <el-select v-model="allUsers.value" multiple filterable="" remote="" reserve-keyword placeholder="请输入手机号" @change="selectUser" :remote-method="remoteMethod" :loading="allUsers.loading">
                        <el-option v-for="item in allUsers.options4" :key="item.id" :label="item.mobileNumber" :value="item.id">
                        </el-option>
                    </el-select>
                </template>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="sendTo" value="发送"/>
            </div>
        </form>
    </div>

</div>
<script src="https://unpkg.com/element-ui@2.4.1/lib/index.js"></script>
<script src="/affiliate/script/notify.js?_${.now?long}"></script>

</body>
</html>
